% Copyright (C) 2011
%                Ze Ji
% Octave code (Matlab compatible)
% 


function [ trainlabels, traindata ] = prepareRandData( size, nrclass )

m = size(1);
n = size(2);

traindata = rand(m, n);

trainlabels = rand(1, m)*nrclass;
trainlabels = ceil(trainlabels) - ceil(nrclass/2);
end
